package affichage;

import level.iTexture;
import level.mulotPerso;
import outils.Direction;

public class textureParachutiste implements iTexture{

	boolean dead;
	Direction d;
	
	public textureParachutiste() {
	}
	
	public textureParachutiste(boolean dead, Direction d) {
		this.dead = dead;
		this.d = d;
	}

	@Override
	public String toString() {
		if(dead)
			return "D";		
		return "P";
	}
	
	public String name(){
		return "Parachutiste";
	}
	
	public boolean traversable(){
		return true;
	}

	@Override
	public boolean destructible() {
		return false;
	}
	
	public String img(){
		if(d == Direction.EST || d == Direction.SUD_EST || d == Direction.NORD_EST)
			return "mulotDroit.png";
		if(d == Direction.OUEST || d == Direction.SUD_OUEST || d == Direction.NORD_OUEST)
			return "mulotGauche.png";
		
		return "mulotGauche.png";
	}
	
	public int getNbMulot() {
		return -1;
	}
	
	public void changer(mulotPerso m){
		m.changerVersParachutiste();
	}
}
